from django.shortcuts import render, HttpResponse

# Create your views here.

import logging

logger = logging.getLogger(__name__)


def hello(request):
    logger.debug("%s 请求了默认的首页" % request.META.get('REMOTE_ADDR', 'UnknownRemote'))
    resp = """<h1><a href="/admin">转到 Django Admin</a></h1>"""
    return HttpResponse(resp)

